import numpy as np

if __name__ == "__main__":
    M = np.array([[10, 34, 54, 23],
                [31, 87, 53, 68],
                [98, 49, 25, 11],
                [84, 32, 67, 88]])
    print(M)
    N = np.pad(M,1,'constant')
    print(N)
    print(M)
    pass